
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>串口发送及中断接收 · STM32HAL系列教程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Atonidas">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="串口的格式化输出.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
         

<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://Gitee.com/atonidas" target="_blank">Gitee</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../软件环境/">
            
                <a href="../软件环境/">
            
                    
                    软件环境
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../软件环境/VScode的使用.html">
            
                <a href="../软件环境/VScode的使用.html">
            
                    
                    VScode快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../软件环境/VSCode插件分享.html">
            
                <a href="../软件环境/VSCode插件分享.html">
            
                    
                    VScode插件分享
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../软件环境/CubeMX简介.html">
            
                <a href="../软件环境/CubeMX简介.html">
            
                    
                    CubeMX简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../软件环境/创建一个工程.html">
            
                <a href="../软件环境/创建一个工程.html">
            
                    
                    创建一个工程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../软件环境/Git版本管理.html">
            
                <a href="../软件环境/Git版本管理.html">
            
                    
                    Git版本管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../软件环境/创建一个快速开发模板.html">
            
                <a href="../软件环境/创建一个快速开发模板.html">
            
                    
                    创建一个快速开发模板
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../STM32的IO口/">
            
                <a href="../STM32的IO口/">
            
                    
                    STM32的IO口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../STM32的IO口/点亮一个LED.html">
            
                <a href="../STM32的IO口/点亮一个LED.html">
            
                    
                    点亮一个LED
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../STM32的IO口/使用独立按键.html">
            
                <a href="../STM32的IO口/使用独立按键.html">
            
                    
                    使用独立按键
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../STM32中断/">
            
                <a href="../STM32中断/">
            
                    
                    STM32中断
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../STM32中断/CubeMX外部中断配置.html">
            
                <a href="../STM32中断/CubeMX外部中断配置.html">
            
                    
                    CubeMX外部中断配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../STM32中断/HAL库外部中断程序.html">
            
                <a href="../STM32中断/HAL库外部中断程序.html">
            
                    
                    HAL库外部中断程序
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../STM32定时器/">
            
                <a href="../STM32定时器/">
            
                    
                    STM32定时器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../STM32定时器/定时器简单中断程序.html">
            
                <a href="../STM32定时器/定时器简单中断程序.html">
            
                    
                    定时器简单中断程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../STM32定时器/硬件PWM输出.html">
            
                <a href="../STM32定时器/硬件PWM输出.html">
            
                    
                    硬件PWM输出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../STM32定时器/DMA输出PWM控制WS2812.html">
            
                <a href="../STM32定时器/DMA输出PWM控制WS2812.html">
            
                    
                    DMA输出PWM控制WS2812
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="./">
            
                <a href="./">
            
                    
                    STM32串口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.6.1" data-path="串口发送及中断接收.html">
            
                <a href="串口发送及中断接收.html">
            
                    
                    串口发送及中断接收
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="串口的格式化输出.html">
            
                <a href="串口的格式化输出.html">
            
                    
                    串口的格式化输出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="串口DMA传输.html">
            
                <a href="串口DMA传输.html">
            
                    
                    串口DMA传输
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="简单协议编写.html">
            
                <a href="简单协议编写.html">
            
                    
                    简单协议编写
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../SPI协议/">
            
                <a href="../SPI协议/">
            
                    
                    SPI协议
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../SPI协议/CubeMX配置及主要函数.html">
            
                <a href="../SPI协议/CubeMX配置及主要函数.html">
            
                    
                    CubeMX配置及主要参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../SPI协议/OLED驱动移植.html">
            
                <a href="../SPI协议/OLED驱动移植.html">
            
                    
                    OLED驱动移植
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../SPI协议/LVGL移植显示.html">
            
                <a href="../SPI协议/LVGL移植显示.html">
            
                    
                    LVGL移植显示
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../SPI协议/Flash的使用及文件系统.html">
            
                <a href="../SPI协议/Flash的使用及文件系统.html">
            
                    
                    Flash的使用及文件系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../ADC的使用/">
            
                <a href="../ADC的使用/">
            
                    
                    ADC的使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../ADC的使用/CubeMX中ADC配置概览.html">
            
                <a href="../ADC的使用/CubeMX中ADC配置概览.html">
            
                    
                    CubeMX中ADC配置概览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../ADC的使用/查询阻塞方式.html">
            
                <a href="../ADC的使用/查询阻塞方式.html">
            
                    
                    查询阻塞方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../ADC的使用/中断方式.html">
            
                <a href="../ADC的使用/中断方式.html">
            
                    
                    中断方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../ADC的使用/DMA方式.html">
            
                <a href="../ADC的使用/DMA方式.html">
            
                    
                    DMA方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="../ADC的使用/应用示例.html">
            
                <a href="../ADC的使用/应用示例.html">
            
                    
                    应用示例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../其他代码整合搬运/">
            
                <a href="../其他代码整合搬运/">
            
                    
                    其他代码整合搬运
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../其他代码整合搬运/MultiButton.html">
            
                <a href="../其他代码整合搬运/MultiButton.html">
            
                    
                    MultiButton
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../其他代码整合搬运/EasyLogger.html">
            
                <a href="../其他代码整合搬运/EasyLogger.html">
            
                    
                    EasyLogger
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../其他代码整合搬运/letter-shell.html">
            
                <a href="../其他代码整合搬运/letter-shell.html">
            
                    
                    letter-shell
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../其他代码整合搬运/EasyFlash.html">
            
                <a href="../其他代码整合搬运/EasyFlash.html">
            
                    
                    EasyFlash
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../其他代码整合搬运/时间片调度.html">
            
                <a href="../其他代码整合搬运/时间片调度.html">
            
                    
                    时间片调度
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../加入我们/">
            
                <a href="../加入我们/">
            
                    
                    加入我们
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../加入我们/Gitbook环境.html">
            
                <a href="../加入我们/Gitbook环境.html">
            
                    
                    Gitbook环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../加入我们/Markdown语法简介.html">
            
                <a href="../加入我们/Markdown语法简介.html">
            
                    
                    Markdown语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../加入我们/编辑器推荐.html">
            
                <a href="../加入我们/编辑器推荐.html">
            
                    
                    编辑器推荐
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../加入我们/工程文件说明.html">
            
                <a href="../加入我们/工程文件说明.html">
            
                    
                    工程文件说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../加入我们/提交注意事项.html">
            
                <a href="../加入我们/提交注意事项.html">
            
                    
                    提交注意事项
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >串口发送及中断接收</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             <h1 id="&#x4E32;&#x53E3;&#x53D1;&#x9001;&#x53CA;&#x4E2D;&#x65AD;&#x63A5;&#x6536;">&#x4E32;&#x53E3;&#x53D1;&#x9001;&#x53CA;&#x4E2D;&#x65AD;&#x63A5;&#x6536;</h1>
<h2 id="cubemx&#x914D;&#x7F6E;&#x4E32;&#x53E3;&#x7684;&#x53D1;&#x9001;&#x548C;&#x63A5;&#x6536;">CubeMX&#x914D;&#x7F6E;&#x4E32;&#x53E3;&#x7684;&#x53D1;&#x9001;&#x548C;&#x63A5;&#x6536;</h2>
<blockquote>
<p>&#x5B66;&#x4E60;&#x7B80;&#x5355;&#x7684;&#x4E32;&#x53E3;&#x914D;&#x7F6E;&#xFF0C;&#x5BF9;&#x6BD4;&#x963B;&#x585E;&#x65B9;&#x5F0F;&#x548C;&#x4E2D;&#x65AD;&#x65B9;&#x5F0F;&#x4E24;&#x4E2A;&#x53D1;&#x9001;&#x51FD;&#x6570;&#xFF0C;&#x4EE5;&#x53CA;&#x4F7F;&#x7528;&#x4E2D;&#x65AD;&#x63A5;&#x6536;</p>
</blockquote>
<h3 id="&#x901A;&#x4FE1;&#x65B9;&#x5F0F;">&#x901A;&#x4FE1;&#x65B9;&#x5F0F;</h3>
<p>STM32&#x7684;&#x4E32;&#x53E3;&#x901A;&#x4FE1;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<strong>&#x5F02;&#x6B65;&#x901A;&#x4FE1;&#xFF08;Asynchronous&#xFF09;</strong>&#x3001;<strong>&#x540C;&#x6B65;&#x901A;&#x4FE1;&#xFF08;Synchronous&#xFF09;</strong>&#x4EE5;&#x53CA;&#x534A;&#x53CC;&#x5DE5;&#x7684;<strong>&#x5355;&#x603B;&#x7EBF;&#x6A21;&#x5F0F;(Single Wire)</strong>&#xFF0C;&#x56E0;&#x6B64;&#x5176;&#x5728;CubeMX&#x4E2D;&#x7684;&#x5916;&#x8BBE;&#x540D;&#x79F0;&#x4E3A;<strong>USART&#xFF1A;&#x901A;&#x7528;&#x5F02;&#x6B65;&#x6536;&#x53D1;&#x4F20;&#x8F93;&#x5668;&#xFF08;Universal Asynchronous Receiver/Transmitter&#xFF09;</strong>&#xFF0C;&#x901A;&#x5E38;&#x5F02;&#x6B65;&#x901A;&#x4FE1;&#x8F83;&#x4E3A;&#x5E38;&#x7528;</p>
<h3 id="&#x5177;&#x4F53;&#x53C2;&#x6570;&#x914D;&#x7F6E;">&#x5177;&#x4F53;&#x53C2;&#x6570;&#x914D;&#x7F6E;</h3>
<p>CubeMX&#x7684;Connectivity&#x4E00;&#x680F;&#x4E2D;&#x662F;&#x4E00;&#x4E9B;&#x534F;&#x8BAE;&#x76F8;&#x5173;&#x7684;&#x5916;&#x8BBE;&#x914D;&#x7F6E;&#xFF0C;&#x5728;&#x8FD9;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x627E;&#x5230;&#x4E32;&#x53E3;&#xFF0C;&#x914D;&#x7F6E;&#x5176;&#x4E2D;&#x7684;&#x4E32;&#x53E3;1&#x4E3A;&#x5F02;&#x6B65;&#x901A;&#x4FE1;&#x65B9;&#x5F0F;&#x4EE5;&#x53CA;&#x8FD9;&#x51E0;&#x4E2A;&#x53C2;&#x6570;&#xFF1A;
<img src="assets/&#x4E32;&#x53E3;&#x53C2;&#x6570;&#x914D;&#x7F6E;.png" alt="&#x4E32;&#x53E3;&#x53C2;&#x6570;&#x914D;&#x7F6E;"></p>
<ul>
<li>Baud Rate &#xFF1A;&#x6CE2;&#x7279;&#x7387;&#x8BBE;&#x7F6E;&#xFF08;115200Bits/s&#xFF09;</li>
<li>Word Length &#xFF1A; &#x5B57;&#x957F;&#xFF08;8Bits&#xFF09;</li>
<li>Parity &#xFF1A;&#x6821;&#x9A8C;&#x4F4D;&#xFF08;&#x65E0;&#xFF09;</li>
<li>Stop Bits &#xFF1A;&#x505C;&#x6B62;&#x4F4D;&#xFF08;1&#x4F4D;&#xFF09;
&#x5728;NVIC&#x4E2D;&#x65AD;&#x4E2D;&#x52FE;&#x9009;&#x4E32;&#x53E3;&#x4E2D;&#x65AD;&#xFF1A;
<img src="assets/&#x4E32;&#x53E3;&#x4E2D;&#x65AD;&#x4F7F;&#x80FD;.png" alt="&#x4E32;&#x53E3;&#x4E2D;&#x65AD;&#x4F7F;&#x80FD;">
&#x5728;&#x53F3;&#x4FA7;&#x82AF;&#x7247;IO&#x9884;&#x89C8;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x76F8;&#x5E94;&#x7684;&#x4E32;&#x53E3;IO&#x53E3;&#x5DF2;&#x7ECF;&#x6253;&#x5F00;&#xFF0C;&#x6211;&#x4EEC;&#x4E5F;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x76F4;&#x63A5;&#x641C;&#x7D22;USART1_TX&#x6216;USART_RX&#x6765;&#x67E5;&#x627E;&#x54EA;&#x4E00;&#x4E9B;&#x5F15;&#x811A;&#x53EF;&#x4EE5;&#x590D;&#x7528;&#x4E3A;USART1&#xFF0C;&#x5982;&#x4E0B;&#x56FE;&#x7684;PB5&#x53EF;&#x4EE5;&#x7528;&#x4E8E;USART1&#x7684;&#x53D1;&#x9001;&#x5F15;&#x811A;&#xFF1A;
<img src="assets/&#x4E32;&#x53E3;&#x5F15;&#x811A;.png" alt="&#x4E32;&#x53E3;&#x5F15;&#x811A;"></li>
</ul>
<h2 id="&#x7A0B;&#x5E8F;&#x7F16;&#x5199;">&#x7A0B;&#x5E8F;&#x7F16;&#x5199;</h2>
<p>&#x4E32;&#x53E3;&#x53D1;&#x9001;&#x7684;&#x51FD;&#x6570;&#x6709;&#x4EE5;&#x4E0B;&#x51E0;&#x4E2A;&#xFF1A;</p>
<ul>
<li><code>HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout)</code></li>
<li><code>HAL_UART_Transmit_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)</code></li>
<li><code>HAL_UART_Transmit_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)</code></li>
</ul>
<p>&#x5206;&#x522B;&#x4E3A;&#xFF1A;</p>
<ul>
<li>&#x4E00;&#x822C;&#x963B;&#x585E;&#x53D1;&#x9001;&#x65B9;&#x5F0F;</li>
<li>&#x4E2D;&#x65AD;&#x53D1;&#x9001;&#x65B9;&#x5F0F;</li>
<li>&#x901A;&#x8FC7;DMA&#x53D1;&#x9001;</li>
</ul>
<p>&#x53EF;&#x4EE5;&#x770B;&#x5230;&#xFF0C;&#x8FD9;&#x51E0;&#x4E2A;&#x51FD;&#x6570;&#x7684;&#x5165;&#x53E3;&#x53C2;&#x6570;&#x90FD;&#x662F;<strong>*huart</strong>&#x3001;<strong>*pData</strong>&#x4EE5;&#x53CA;<strong>Size</strong>&#xFF0C;&#x5206;&#x522B;&#x5BF9;&#x5E94;&#x64CD;&#x4F5C;&#x53E5;&#x67C4;&#xFF0C;&#x6570;&#x636E;&#x5730;&#x5740;&#xFF0C;&#x6570;&#x636E;&#x957F;&#x5EA6;&#xFF0C;&#x800C;&#x963B;&#x585E;&#x65B9;&#x5F0F;&#x591A;&#x4E86;&#x4E00;&#x4E2A;<strong>Timeout</strong>&#x8D85;&#x65F6;&#x65F6;&#x95F4;&#x3002;&#x9700;&#x8981;&#x91CD;&#x70B9;&#x7559;&#x610F;&#x7684;&#x662F;<strong>&#x64CD;&#x4F5C;&#x53E5;&#x67C4;</strong>&#xFF0C;&#x548C;&#x5B9A;&#x65F6;&#x5668;&#x7684;&#x53E5;&#x67C4;&#x7C7B;&#x4F3C;&#xFF0C;&#x4E32;&#x53E3;&#x7684;&#x53E5;&#x67C4;&#x4E5F;&#x662F;&#x6309;&#x7167;&#xFF1A;<em>h + &#x5916;&#x8BBE; + &#x7F16;&#x53F7;</em>&#x7684;&#x65B9;&#x5F0F;&#x5B9A;&#x4E49;&#xFF0C;&#x56E0;&#x6B64;&#x4E32;&#x53E3;1&#x7684;&#x53E5;&#x67C4;&#x4E3A;<em>huart1</em>&#x3002;&#x5F53;&#x9700;&#x8981;&#x8C03;&#x7528;&#x4E0D;&#x540C;&#x7684;&#x4E32;&#x53E3;&#x6536;&#x53D1;&#x51FD;&#x6570;&#x65F6;&#xFF0C;&#x6211;&#x4EEC;&#x6539;&#x4E3A;&#x76F8;&#x5E94;&#x7684;&#x53E5;&#x67C4;&#x5373;&#x53EF;&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x770B;&#x4E00;&#x4E0B;&#x51E0;&#x79CD;&#x53D1;&#x9001;&#x63A5;&#x6536;&#x6A21;&#x5F0F;&#x7684;&#x5BF9;&#x6BD4;&#xFF1A;</p>
<h3 id="&#x963B;&#x585E;&#x5F0F;&#x53D1;&#x9001;">&#x963B;&#x585E;&#x5F0F;&#x53D1;&#x9001;</h3>
<p>&#x5728;while(1)&#x5FAA;&#x73AF;&#x4E2D;&#x6DFB;&#x52A0;&#x5982;&#x4E0B;&#x4EE3;&#x7801;&#xFF0C;&#x6BCF;&#x79D2;&#x6253;&#x5370;&#x4E00;&#x6B21;&#x4FE1;&#x606F;&#xFF1A;</p>
<pre><code class="lang-c">  <span class="hljs-comment">/* USER CODE BEGIN WHILE */</span>
  <span class="hljs-keyword">while</span> (<span class="hljs-number">1</span>)
  {
    HAL_UART_Transmit(&amp;huart1, <span class="hljs-string">&quot;hello &quot;</span>, <span class="hljs-number">6</span>, <span class="hljs-number">0xFF</span>);
    HAL_Delay(<span class="hljs-number">1000</span>);
    <span class="hljs-comment">/* USER CODE END WHILE */</span>
</code></pre>
<p>&#x7F16;&#x8BD1;&#x4E0B;&#x8F7D;&#x540E;&#x8FDE;&#x63A5;&#x786C;&#x4EF6;&#xFF0C;&#x6CE8;&#x610F;&#x4E32;&#x53E3;&#x6A21;&#x5757;&#x7684;TXD&#x63A5;&#x5230;&#x5355;&#x7247;&#x673A;RX&#xFF0C;RXD&#x63A5;&#x5230;TX,&#x4E4B;&#x540E;&#x6253;&#x5F00;EIDE&#x7684;&#x4E32;&#x53E3;&#x76D1;&#x89C6;&#x5668;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#xFF1A;
<img src="assets/&#x963B;&#x585E;&#x65B9;&#x5F0F;&#x53D1;&#x9001;.png" alt="&#x963B;&#x585E;&#x65B9;&#x5F0F;&#x53D1;&#x9001;">
&#x8C03;&#x8BD5;&#x7A97;&#x91CC;&#x770B;&#x5230;&#x4E86;&#x6211;&#x4EEC;&#x8F93;&#x51FA;&#x7684;&#x5B57;&#x7B26;&#xFF0C;&#x56E0;&#x4E3A;&#x6CA1;&#x6709;&#x52A0;&#x4E0A;&#x6362;&#x884C;&#xFF0C;&#x6240;&#x4EE5;&#x5B57;&#x7B26;&#x4E32;&#x662F;&#x8FDE;&#x5728;&#x4E00;&#x8D77;&#x8F93;&#x51FA;&#x7684;&#x3002;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x52A0;&#x4E0A;&#x5982;&#x4E0B;&#x4EE3;&#x7801;&#xFF1A;</p>
<pre><code class="lang-c">  <span class="hljs-keyword">uint8_t</span> n = <span class="hljs-number">0x0A</span>;
  <span class="hljs-keyword">while</span> (<span class="hljs-number">1</span>)
  {
    HAL_UART_Transmit(&amp;huart1, <span class="hljs-string">&quot;hello &quot;</span>, <span class="hljs-number">6</span>, <span class="hljs-number">0xFF</span>);
    HAL_UART_Transmit(&amp;huart1, &amp;n, <span class="hljs-number">1</span>, <span class="hljs-number">0xFF</span>);
    HAL_Delay(<span class="hljs-number">1000</span>);
    <span class="hljs-comment">/* USER CODE END WHILE */</span>
</code></pre>
<p><img src="assets/&#x963B;&#x585E;&#x53D1;&#x9001;&#x6362;&#x884C;.png" alt="&#x963B;&#x585E;&#x53D1;&#x9001;&#x6362;&#x884C;">
&#x53EF;&#x4EE5;&#x770B;&#x5230;&#xFF0C;&#x8FD9;&#x6B21;&#x7684;&#x8F93;&#x51FA;&#x5B9E;&#x73B0;&#x4E86;&#x6362;&#x884C;&#x7684;&#x6548;&#x679C;&#x3002;&#x8FD9;&#x662F;&#x56E0;&#x4E3A;&#x5728;ASCII&#x7801;&#x4E2D;&#x6362;&#x884C;&#x7B26;&#x7684;&#x7F16;&#x53F7;&#x662F;10&#xFF0C;&#x56E0;&#x6B64;&#x6211;&#x4EEC;&#x53D1;&#x9001;&#x4E00;&#x4E2A;0x0A&#x5373;&#x53EF;&#x5B9E;&#x73B0;&#x6362;&#x884C;&#x3002;&#x5F53;&#x7136;&#xFF0C;&#x8FD9;&#x79CD;&#x6362;&#x884C;&#x65B9;&#x5F0F;&#x5F88;&#x9EBB;&#x70E6;&#xFF0C;&#x540E;&#x9762;&#x4F1A;&#x8BB2;&#x89E3;<a href="&#x4E32;&#x53E3;&#x7684;&#x683C;&#x5F0F;&#x5316;&#x8F93;&#x51FA;">&#x683C;&#x5F0F;&#x5316;&#x8F93;&#x51FA;</a></p>
<h3 id="&#x4E2D;&#x65AD;&#x65B9;&#x5F0F;&#x53D1;&#x9001;">&#x4E2D;&#x65AD;&#x65B9;&#x5F0F;&#x53D1;&#x9001;</h3>
<p>&#x5C06;&#x963B;&#x585E;&#x6A21;&#x5F0F;&#x7684;&#x4EE3;&#x7801;&#x6539;&#x4E3A;&#x4E2D;&#x65AD;&#x53D1;&#x9001;&#xFF0C;&#x5E76;&#x505A;&#x51FA;&#x4E00;&#x4E9B;&#x4FEE;&#x6539;&#xFF0C;&#x7F16;&#x8BD1;&#x4E0B;&#x8F7D;&#x540E;&#x89C2;&#x5BDF;&#x6548;&#x679C;&#xFF1A;</p>
<pre><code class="lang-c">  <span class="hljs-keyword">uint8_t</span> n = <span class="hljs-number">0x0A</span>;
  <span class="hljs-keyword">while</span> (<span class="hljs-number">1</span>)
  {
    HAL_UART_Transmit_IT(&amp;huart1, <span class="hljs-string">&quot;hello &quot;</span>, <span class="hljs-number">6</span>);
    HAL_UART_Transmit_IT(&amp;huart1, <span class="hljs-string">&quot;world &quot;</span>, <span class="hljs-number">6</span>);
    HAL_UART_Transmit_IT(&amp;huart1, &amp;n, <span class="hljs-number">1</span>);
    HAL_Delay(<span class="hljs-number">1000</span>);
    <span class="hljs-comment">/* USER CODE END WHILE */</span>
</code></pre>
<p><img src="assets/&#x4E2D;&#x65AD;&#x53D1;&#x9001;&#x6D4B;&#x8BD5;.png" alt="&#x4E2D;&#x65AD;&#x53D1;&#x9001;&#x6D4B;&#x8BD5;">
&#x4E0B;&#x8F7D;&#x540E;&#x6253;&#x5F00;&#x8FD0;&#x884C;&#x4E32;&#x53E3;&#xFF0C;&#x4EE3;&#x7801;&#x53EA;&#x53D1;&#x9001;&#x4E86;&#x7B2C;&#x4E00;&#x53E5;&#xFF0C;&#x540E;&#x9762;&#x7684;&#x90FD;&#x6CA1;&#x80FD;&#x6210;&#x529F;&#x53D1;&#x9001;&#x3002;&#x8FD9;&#x662F;&#x56E0;&#x4E3A;&#x4E32;&#x53E3;&#x4E2D;&#x65AD;&#x53D1;&#x9001;&#x65F6;&#xFF0C;<strong>&#x53D1;&#x9001;&#x524D;&#x4F1A;&#x68C0;&#x67E5;&#x6240;&#x7528;&#x4E32;&#x53E3;&#x662F;&#x5426;&#x7A7A;&#x95F2;&#xFF0C;&#x82E5;&#x4E0D;&#x7A7A;&#x95F2;&#x5219;&#x53D6;&#x6D88;&#x53D1;&#x9001;&#xFF1B;&#x53D1;&#x51FA;&#x540E;&#x4EE3;&#x7801;&#x4E0D;&#x8F7D;&#x7BA1;&#x7406;&#x53D1;&#x9001;&#x4E8B;&#x4EF6;</strong>&#x3002;&#x8FD9;&#x4E00;&#x70B9;&#x548C;&#x963B;&#x585E;&#x5F0F;&#x53D1;&#x9001;&#x7684;&#x53D1;&#x9001;&#x524D;&#x68C0;&#x67E5;&#x662F;&#x5426;&#x7A7A;&#x95F2;&#xFF0C;<strong>&#x53D1;&#x9001;&#x540E;&#x4E00;&#x76F4;&#x7B49;&#x5F85;&#x53D1;&#x9001;&#x5B8C;&#x6BD5;&#x5E76;&#x4E0D;&#x76F8;&#x540C;</strong>&#x3002;
&#x800C;&#x5728;&#x6211;&#x4EEC;&#x7684;&#x8FD9;&#x6BB5;&#x4EE3;&#x7801;&#x4E2D;&#xFF0C;&#x8FDE;&#x7EED;&#x8C03;&#x7528;&#x4E86;&#x4E09;&#x6B21;&#x4E2D;&#x65AD;&#x53D1;&#x9001;&#xFF0C;&#x8FD9;&#x6837;&#x4E00;&#x6765;&#x540E;&#x4E24;&#x6B21;&#x7684;&#x53D1;&#x9001;&#x4F1A;&#x56E0;&#x4E3A;&#x524D;&#x9762;&#x53D1;&#x9001;&#x5E76;&#x672A;&#x5B8C;&#x6210;&#x800C;&#x53D6;&#x6D88;&#x53D1;&#x9001;&#xFF0C;&#x5BFC;&#x81F4;&#x53D1;&#x9001;&#x5931;&#x8D25;&#x3002;&#x8FD9;&#x91CC;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x5728;&#x6BCF;&#x6B21;&#x53D1;&#x9001;&#x540E;&#x90FD;&#x5EF6;&#x65F6;&#x4E00;&#x5C0F;&#x6BB5;&#x65F6;&#x95F4;&#x6765;&#x89E3;&#x51B3;&#x8FD9;&#x4E2A;&#x95EE;&#x9898;&#xFF0C;&#x4F46;&#x662F;&#x5F88;&#x4E0D;&#x4F18;&#x96C5;&#xFF0C;&#x5EFA;&#x8BAE;<strong>&#x89C4;&#x8303;&#x6BCF;&#x6B21;&#x53D1;&#x51FA;&#x7684;&#x5185;&#x5BB9;&#x4EE5;&#x53CA;&#x53D1;&#x51FA;&#x7684;&#x65F6;&#x95F4;</strong></p>
<pre><code class="lang-c">  <span class="hljs-comment">//&#x4E0D;&#x5EFA;&#x8BAE;&#x4F7F;&#x7528;&#xFF01;&#xFF01;</span>
  <span class="hljs-keyword">uint8_t</span> n = <span class="hljs-number">0x0A</span>;
  <span class="hljs-keyword">while</span> (<span class="hljs-number">1</span>)
  {
    HAL_UART_Transmit_IT(&amp;huart1, <span class="hljs-string">&quot;hello &quot;</span>, <span class="hljs-number">6</span>);
    HAL_Delay(<span class="hljs-number">1</span>);
    HAL_UART_Transmit_IT(&amp;huart1, <span class="hljs-string">&quot;world &quot;</span>, <span class="hljs-number">6</span>);
    HAL_Delay(<span class="hljs-number">1</span>);
    HAL_UART_Transmit_IT(&amp;huart1, &amp;n, <span class="hljs-number">1</span>);
    HAL_Delay(<span class="hljs-number">1000</span>);
    <span class="hljs-comment">/* USER CODE END WHILE */</span>
</code></pre>
<h3 id="&#x4E2D;&#x65AD;&#x63A5;&#x6536;">&#x4E2D;&#x65AD;&#x63A5;&#x6536;</h3>
<p>&#x4E32;&#x53E3;&#x5E38;&#x7528;&#x7684;&#x63A5;&#x6536;&#x51FD;&#x6570;&#x548C;&#x53D1;&#x9001;&#x51FD;&#x6570;&#x7C7B;&#x4F3C;&#xFF0C;&#x6709;&#x963B;&#x585E;&#x3001;&#x4E2D;&#x65AD;&#x3001;DMA&#x4E09;&#x79CD;&#xFF1A;</p>
<ul>
<li><code>HAL_UART_Receive(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout)</code></li>
<li><code>HAL_UART_Receive_IT(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)</code></li>
<li><code>HAL_UART_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size)</code>
&#x53C2;&#x6570;&#x548C;&#x53D1;&#x9001;&#x51FD;&#x6570;&#x7C7B;&#x4F3C;&#xFF0C;&#x4E0D;&#x8FC7;&#x8FD9;&#x91CC;&#x7684;<strong>/*pData</strong>&#x4E3A;&#x63A5;&#x6536;&#x533A;&#x7684;&#x5730;&#x5740;&#xFF0C;&#x901A;&#x5E38;&#x6211;&#x4EEC;&#x4F1A;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x5B57;&#x8282;&#x548C;&#x4E00;&#x4E2A;&#x6570;&#x7EC4;&#x8FDB;&#x884C;&#x63A5;&#x6536;&#xFF0C;&#x901A;&#x8FC7;&#x8F6C;&#x5B58;&#x7684;&#x65B9;&#x5F0F;&#x5C06;&#x63A5;&#x6536;&#x5230;&#x7684;&#x6570;&#x636E;&#x4F9D;&#x6B21;&#x653E;&#x5230;&#x7F13;&#x5B58;&#x533A;&#xFF1A;<pre><code class="lang-c"><span class="hljs-comment">/* USER CODE BEGIN 0 */</span>
<span class="hljs-meta">#<span class="hljs-meta-keyword">define</span> DATA_MAX 20</span>
<span class="hljs-keyword">uint8_t</span> RxBuf[DATA_MAX];
<span class="hljs-keyword">uint8_t</span> RxPoint = <span class="hljs-number">0</span>, RxData;
<span class="hljs-comment">/* USER CODE END 0 */</span>
</code></pre>
&#x5728;while&#x5FAA;&#x73AF;&#x5F00;&#x59CB;&#x524D;&#x9700;&#x8981;&#x8C03;&#x7528;&#x4E00;&#x6B21;&#x4E2D;&#x65AD;&#x63A5;&#x6536;&#xFF1A;&#xFF08;&#x987A;&#x5E26;&#x5199;&#x4E0A;&#x5F00;&#x673A;&#x63D0;&#x793A;&#xFF09;<pre><code class="lang-c"><span class="hljs-comment">/* USER CODE BEGIN 2 */</span>
HAL_UART_Receive_IT(&amp;huart1, (<span class="hljs-keyword">uint8_t</span> *)&amp;RxData, <span class="hljs-number">1</span>);
HAL_UART_Transmit(&amp;huart1, (<span class="hljs-keyword">uint8_t</span> *)<span class="hljs-string">&quot;System Start&quot;</span>, <span class="hljs-number">12</span>, <span class="hljs-number">0xFF</span>);
</code></pre>
HAL&#x5E93;&#x7684;&#x4E32;&#x53E3;&#x4E2D;&#x65AD;&#x56DE;&#x8C03;&#x51FD;&#x6570;&#x4E3A;<strong><code>HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)</code></strong>&#xFF0C;&#x5728;&#x4E3B;&#x51FD;&#x6570;&#x4E0B;&#x65B9;&#x7F16;&#x5199;&#x5982;&#x4E0B;&#x56DE;&#x8C03;&#x51FD;&#x6570;:<pre><code class="lang-c"><span class="hljs-comment">/* USER CODE BEGIN 4 */</span>
<span class="hljs-function"><span class="hljs-keyword">void</span> <span class="hljs-title">HAL_UART_RxCpltCallback</span><span class="hljs-params">(UART_HandleTypeDef *huart)</span>
</span>{
<span class="hljs-keyword">if</span> (huart == &amp;huart1)
{
  <span class="hljs-keyword">if</span> (RxPoint &gt;= DATA_MAX)
  {
    RxPoint = <span class="hljs-number">0</span>;
    HAL_UART_Transmit(&amp;huart1, (<span class="hljs-keyword">uint8_t</span> *)<span class="hljs-string">&quot;Data Out!&quot;</span>, <span class="hljs-number">9</span>, <span class="hljs-number">0xFF</span>);
  }
  <span class="hljs-keyword">else</span>
  {
    RxBuf[RxPoint++] = RxData;
    <span class="hljs-keyword">if</span> ((RxBuf[RxPoint - <span class="hljs-number">1</span>] == <span class="hljs-string">&apos;A&apos;</span>))
    {
      HAL_UART_Transmit(&amp;huart1, RxBuf, RxPoint - <span class="hljs-number">1</span>, <span class="hljs-number">0xFF</span>);
      <span class="hljs-keyword">while</span> (HAL_UART_GetState(&amp;huart1) == HAL_UART_STATE_BUSY_TX)
        ;
      RxPoint = <span class="hljs-number">0</span>;
    }
  }
  HAL_UART_Receive_IT(&amp;huart1, &amp;RxData, <span class="hljs-number">1</span>);
}
}
</code></pre>
&#x8FD9;&#x6BB5;&#x7A0B;&#x5E8F;&#x4E2D;&#x9996;&#x5148;&#x4F1A;&#x5224;&#x65AD;&#x63A5;&#x6536;&#x7684;&#x5B57;&#x7B26;&#x4E32;&#x662F;&#x5426;&#x8D85;&#x51FA;&#x4E86;&#x7F13;&#x5B58;&#x533A;&#x7684;&#x957F;&#x5EA6;&#xFF0C;&#x5982;&#x679C;&#x8D85;&#x51FA;&#x4F1A;&#x76F4;&#x63A5;&#x63D0;&#x793A;&#x5E76;&#x8FD4;&#x56DE;&#xFF1B;&#x5982;&#x679C;&#x6CA1;&#x6709;&#x8D85;&#x51FA;&#x4F1A;&#x5C06;&#x6570;&#x636E;&#x8F6C;&#x5B58;&#x5230;&#x6570;&#x7EC4;&#x4E2D;&#xFF0C;&#x4EE3;&#x7801;&#x4E2D;&#x4EE5;&apos;A&apos;&#x6765;&#x5224;&#x65AD;&#x5B57;&#x7B26;&#x4E32;&#x7684;&#x7ED3;&#x675F;&#xFF0C;&#x6536;&#x5230;&apos;A&apos;&#x540E;&#x56DE;&#x663E;&#x6574;&#x4E2A;&#x5B57;&#x7B26;&#x4E32;&#x5E76;&#x4ECE;&#x5934;&#x5F00;&#x59CB;&#x63A5;&#x6536;&#x3002;</li>
</ul>
<p>&#x6253;&#x5F00;&#x4E32;&#x53E3;&#x76D1;&#x89C6;&#x5668;&#xFF0C;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x5728;&#x91CC;&#x9762;&#x8F93;&#x5165;&#x5185;&#x5BB9;&#xFF0C;&#x56DE;&#x8F66;&#x53D1;&#x9001;&#xFF0C;&#x4F8B;&#x5982;&#xFF1A;
<img src="assets/&#x4E32;&#x53E3;&#x4E2D;&#x65AD;&#x63A5;&#x6536;.png" alt="&#x4E32;&#x53E3;&#x4E2D;&#x65AD;&#x63A5;&#x6536;">
&#x5982;&#x4E0A;&#x56FE;&#x4E2D;&#xFF0C;&#x957F;&#x5EA6;&#x8303;&#x56F4;&#x5185;&#x7684; <strong>&#x5B57;&#x7B26;&#x4E32;+&apos;A&apos;</strong> &#x80FD;&#x591F;&#x6210;&#x529F;&#x56DE;&#x663E;&#xFF0C;&#x4F46;&#x662F;&#x8FC7;&#x957F;&#x7684;&#x6570;&#x636E;&#x4F1A;&#x63D0;&#x793A;&#x6EA2;&#x51FA;&#x3002;&#x5230;&#x6B64;&#xFF0C;&#x7B80;&#x5355;&#x4E32;&#x53E3;&#x914D;&#x7F6E;&#x7ED3;&#x675F;&#x3002;</p>
<h1 id="one-more-thing">One more thing</h1>
<h2 id="stringh&#x4E2D;&#x7684;&#x51FD;&#x6570;">string.h&#x4E2D;&#x7684;&#x51FD;&#x6570;</h2>
<h2 id="&#x5C40;&#x9650;">&#x5C40;&#x9650;</h2>
 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
        </div>
      </div>
      
    </div>

     
    <a
      href="./"
      class="
        navigation navigation-prev
        
      "
      aria-label="Previous page: STM32串口"
    >
      <i class="fa fa-angle-left"></i>
    </a>
     
    <a
      href="串口的格式化输出.html"
      class="
        navigation navigation-next
        
      "
      aria-label="Next page: 串口的格式化输出"
    >
      <i class="fa fa-angle-right"></i>
    </a>
      
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"串口发送及中断接收","level":"1.6.1","depth":2,"next":{"title":"串口的格式化输出","level":"1.6.2","depth":2,"path":"STM32串口/串口的格式化输出.md","ref":"./STM32串口/串口的格式化输出.md","articles":[]},"previous":{"title":"STM32串口","level":"1.6","depth":1,"path":"STM32串口/README.md","ref":"./STM32串口/README.md","articles":[{"title":"串口发送及中断接收","level":"1.6.1","depth":2,"path":"STM32串口/串口发送及中断接收.md","ref":"./STM32串口/串口发送及中断接收.md","articles":[]},{"title":"串口的格式化输出","level":"1.6.2","depth":2,"path":"STM32串口/串口的格式化输出.md","ref":"./STM32串口/串口的格式化输出.md","articles":[]},{"title":"串口DMA传输","level":"1.6.3","depth":2,"path":"STM32串口/串口DMA传输.md","ref":"./STM32串口/串口DMA传输.md","articles":[]},{"title":"简单协议编写","level":"1.6.4","depth":2,"path":"STM32串口/简单协议编写.md","ref":"./STM32串口/简单协议编写.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["-lunr","-sharing","-search","-favicon","-code","expandable-chapters","theme-lou","back-to-top-button","search-pro","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"livereload":{},"search-pro":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link"],"color":"#8abcd1","copyright":{"author":"Atonidas"},"forbidCopy":false,"logo":"assets/logo.png","search-placeholder":"查找关键内容","copyrightLogo":"assets/copyright.png","favicon":"assets/favicon.ico","autoNumber":3},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"Atonidas","lang":"zh-cn","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://Gitee.com/atonidas","name":"Gitee"}]}},"title":"STM32HAL系列教程","gitbook":"*","description":"Gitbook电子书示例项目"},"file":{"path":"STM32串口/串口发送及中断接收.md","mtime":"2023-04-04T06:18:13.072Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-13T00:50:24.020Z"},"basePath":"..","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

